package com.huopaolan.yohuoshop.Mvp.Model;

import com.huopaolan.lib_core.Http.MResponseManager;
import com.huopaolan.lib_core.Mvp.Model.BaseModel;
import com.huopaolan.yohuoshop.Bean.HomeMenuEntity;
import com.huopaolan.yohuoshop.Mvp.Contract.HomeContract;
import com.huopaolan.yohuoshop.NetWork.API;

import javax.inject.Inject;

import io.reactivex.Observable;

public class HomeModel extends BaseModel implements HomeContract.IHomeModel {

    @Inject
    public HomeModel(){}

    @Override
    public Observable<HomeMenuEntity> homeMenu() {
        return MResponseManager.obtainRetrofit(API.class).home_menu_request();
    }

    @Override
    public void destroy() {
        
    }
}
